from kivy.properties import NumericProperty
from kivy.uix.textinput import TextInput


#  自定义TextInput标签
class TextInputComm(TextInput):
    font_size = NumericProperty(18)
    # foreground_color = (0, 0.5, 0.7, 1)  # 设置文字颜色
    # background_color = (1, 1, 1, 0.1)  # 设置背景色
    foreground_color = (1, 0, 0, .8)  # 设置文字颜色
    background_color = (0.102, 0.518, 0.745, 0.13)  # 设置背景色
    write_tab = False  # 通过禁止输入tab键实现按tab键在多个输入框之间切换

    def __init__(self, **kwargs):
        super(TextInputComm, self).__init__(**kwargs)
        self.size_hint_y = None
        self.height = 35


